import { get, post } from '@/utils/request'

const BASE_URL = window.baseUrl.action
const MLK_URL = window.baseUrl.mlk
const TICKET_URL = window.baseUrl.ticket
//  字典-获取字典信息
export function getDictList(query) {
  return get(MLK_URL + '/dictItems/listByType/' + query)
}
// 流程list
export function listServiceFlow(query) {
  return post(TICKET_URL + '/serviceDef/listServiceFlow', query)
}
// 周期性任务-分页
export function pageList(query) {
  return post(BASE_URL + '/rules/pageList', query)
}
// 周期性任务-新增
export function add(query) {
  return post(BASE_URL + '/rules/insert', query)
}
// 周期性任务-修改
export function update(query) {
  return post(BASE_URL + '/rules/update', query)
}
// 周期性任务-删除
export function deleteItem(id) {
  return get(BASE_URL + '/rules/delete?ids=' + id)
}
// 周期性任务-详情
export function details(id) {
  return get(BASE_URL + '/rules/details/' + id)
}
// 周期性任务状态
export function getStatus(query) {
  return post(BASE_URL + '/rules/status', query)
}

// 周期性任务-执行记录
export function logList(query) {
  return post(BASE_URL + '/rules/logList', query)
}
